﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HR.Appointments.Service.Tools;
using HR.Appointments.Service.DataAccessLayer;

namespace HR.Appointments.Service.Test
{
    class MockDao
    {
        public static void SetUp()
        {
            Registry.RegisterDAO(new MockReservedTime(), typeof(IReservedTimeDAO));
            Registry.RegisterDAO(new MockOpenHours(), typeof(IOpenHoursDAO));
            Registry.RegisterDAO(new MockOrder(), typeof(IOrderDAO));
            Registry.RegisterDAO(new MockCompanyEntity(), typeof(ICompanyDAO));
            Registry.RegisterDAO(new MockWorkstation(), typeof(IWorkstationDAO));
            Registry.RegisterDAO(new MockActivity(), typeof(IActivityDAO));
        }

        public static void TearDown()
        {
            Registry.DeRegisterDAO(typeof(IReservedTimeDAO));
            Registry.DeRegisterDAO(typeof(IOpenHoursDAO));
            Registry.DeRegisterDAO(typeof(IOrderDAO));
            Registry.DeRegisterDAO(typeof(ICompanyDAO));
            Registry.DeRegisterDAO(typeof(IWorkstationDAO));
            Registry.DeRegisterDAO(typeof(IActivityDAO));
        }
    }
}
